﻿@{
    ViewBag.Title = "Index";
}
<h2>
    Index</h2>
<script type="text/javascript">
    $(document).ready(function () {
        $("#Get").click(function () {
            $.get(pathPrefix + "PageNotes/GetPageNotes?AlbumPageId=" + $("#AlbumPageId").val(), null, function (result) {
                $("#result").empty();
                for (var i = 0; i < result.length; i++) {
                    $("#result").append(JSON.stringify(result[i]) + "<br />");
                }
            }, "json");
        });
    });
</script>
<input type="text" id="AlbumPageId" />
<input type="button" id="Get" value="הצג" />
<div id="result" style="border:1px solid #000;direction:ltr;">
</div>
<hr />
@using (Html.BeginForm("AddNote", "PageNotes"))
{
    <div>
        טקסט</div>@Html.TextArea("Text")
    <div>
        מקבל</div>@Html.TextBox("Receiver")
    <div>
        מספר עמוד</div>@Html.TextBox("AlbumPageId")
    <div>
        <input type="submit" value="שלח" />
    </div>
}